]> dgit.raspbian.org Git - nodejs.git/commit
crypto: guard WebCrypto cipher output length
authorFilip Skokan <panva.ip@gmail.com>
Mon, 25 May 2026 09:09:31 +0000 (11:09 +0200)
committerBastien Roucariès <rouca@debian.org>
Sun, 16 Aug 2026 17:34:06 +0000 (19:34 +0200)
commit61f8acff81607d37c6ae348892a166a093eec50c
tree12bd75f75e2b7a9baa5a962672ae9333c8f55bd6
parent115b684bee3a04ede974edf4d0c078c0009a24e0
crypto: guard WebCrypto cipher output length

Reject WebCrypto cipher operations whose computed output length would
exceed INT_MAX before passing the length to OpenSSL.

This avoids signed overflow in the AES and ChaCha20-Poly1305 one-shot
cipher paths and turns oversized inputs into a clean operation failure.

Refs: https://hackerone.com/reports/3760016
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
Backport-PR-URL: https://github.com/nodejs-private/node-private/pull/879
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: https://github.com/nodejs-private/node-private/pull/878
CVE-ID: CVE-2026-48933
origin: backport, https://github.com/nodejs/node/commit/38b4c5ed51b2ec81c28fbd379fea72e22fa12a15
bug: https://nodejs.org/en/blog/vulnerability/june-2026-security-releases#nodejs-webcrypto-aes-integer-overflow-leads-to-remote-process-abort-dos-cve-2026-48933---high

Gbp-Pq: Topic sec
Gbp-Pq: Name CVE-2026-48933.patch
src/crypto/crypto_aes.cc
src/crypto/crypto_cipher.h
test/cctest/test_node_crypto.cc